home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5747 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nntp.teleport.com!usenet
  2. From: GHouck <hksys@teleport.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Leap Years
  5. Date: 21 Feb 1996 00:31:10 GMT
  6. Organization: systems hk
  7. Message-ID: <4gdp4e$9go@maureen.teleport.com>
  8. References: <8BA8405.02C70020E1.uuout@sourcebbs.com> <4fsk14$jo2@kocrsv08.delcoelect.com> <3121EF9A.CA5@mail.isd.net> <4g28ut$p87@taurus.fccc.edu> <fcusack-1602961256070001@mudskipper.cac.psu.edu>
  9. NNTP-Posting-Host: ip-pdx06-41.teleport.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15. fcusack@tdx.org (frank.) wrote:
  16. >
  17. >His definition is (slightly) wrong. A year is a leap year if it is
  18. >divisible by 4, unless it is the end of the century (1800, 1900, 2000,
  19. >...). In that case, it must be divisible by 400 in order to be a leap
  20. >year. No, 1900 was not a leap year. Three out of four centuries are
  21. >excluded so that the calendar remains in sync with our orbit around the
  22. >sun (so seasons are "predictable"). It's not perfect however. Every so
  23. >often, we have to add a leap second, which occurs on 1/1 at midnight. Does
  24. >anyone know what the rule is for leap seconds?
  25. >~Frank
  26. > -- I am Pentium of Borg.  Division is futile.  You will be approximated. --
  27. > --   If you build it, they will come --> http://www.tdx.org/~fcusack/    --
  28. > -- PGP key fingerprint: 01 C0 C0 B9 CC 78 67 0F  3F 64 80 65 8B 0F F9 EA --
  29.  
  30. I didn't quite see the rule I've known to exist for Leap Years:
  31.  
  32.   Lyear = year/4 (yes) except year/100 (no) except year/1000 (yes)
  33.  
  34. Yours, Geoff Houck
  35.  
  36.